<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>任务管理系统 - 错误</title>

  <!-- 引入Bootstrap  的css样式库  以及js封装的框架库-->
  <link href="css/bootstrap.css" rel="stylesheet">
  <script src="js/jquery-3.5.1.js"></script>
  <script src="js/bootstrap.js"></script>
  <link rel="stylesheet" href="css/show.css">
  <link rel="icon" href="images/12.ico">

  <style>
    body {
      background-color: #f2bbbb;
      display: flex; /* 使用 Flexbox */
      justify-content: center; /* 水平居中 */
      align-items: center; /* 垂直居中 */
      height: 100vh; /* 设置高度为视口高度 */
      margin: 0; /* 取消默认边距 */
    }

    div {
      text-align: center; /* 文字居中 */
    }

    h1 {
      font-size: 55px;
      margin-bottom: 30px;
      color: #3f78e9;
    }

    p {
      font-size: 33px;
      margin-bottom: 30px;
      color: #717070;
      font-weight: bold;
    }
    header{
      margin: 0;
      padding: 0;
    }
    @media (max-width: 768px) {
      h1 {
        font-size: 30px;
      }
      p {
        font-size: 25px;
      }
    }
  </style>
</head>
<body>
<!--   引入导航  ctrl + alt + -号,折叠代码  -->
<header class="navbar-fixed-top" role="navigation">
  <nav class="navbar navbar-inverse">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">切换导航</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="getTask.jsp" target="_parent">首页·任务管理</a>
      </div>

      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
          <li><a target="_parent" href="TaskLineServlet">任务成就页</a></li>
          <li><a target="_parent" href="#">布局·计划</a></li>
          <li><a target="_parent" href="#">任务提醒</a></li>
          <li><a target="_parent" href="#">常用网址收藏</a></li>
          <li><a target="_parent" href="#">工作感悟</a></li>
          <li><a target="_parent" href="#">读书笔记</a></li>

        </ul>
        <form class="navbar-form navbar-left" role="search">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="Search">
          </div>
          <button type="submit" class="btn btn-default">搜索</button>
        </form>
        <ul class="nav navbar-nav navbar-right">
          <li><a target="_parent" id="login_out"
                 onclick="confirm('确定要退出登录吗？')==true?location.href='login.jsp':''"><%   String uname = (String) session.getAttribute("uname");
            String welcomeMessage = "欢迎,登录";
            if (uname != null && !uname.isEmpty()) {
              welcomeMessage = "欢迎," + uname + "[退出登录]";
            }
            out.print(welcomeMessage);
          %>
          </a></li>
          <li><a target="_parent" href="regist.jsp">注册</a></li>
          <li><a target="_parent" href="#">会员中心</a></li>
          <li><a target="_parent" href="#">联系我们</a></li>
        </ul>
      </div>
    </div>
  </nav>
</header>
<div>
  <h1>任务管理系统-服务器错误</h1>
  <br><br> <br> <br> <br>
  <p>发生了一个错误，请联系管理员: 690831945@qq.com</p>
</div>
</body>
</html>

